package day01;

import java.io.*;

public class FileReaderDemo01 {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(
                new FileReader(
                        new File("D:\\1\\ObjectTest.java")));
        char[] buff = new char[1024];
        int len = -1;
        while((len=br.read(buff))!=-1) {
            System.out.print(new String(buff,0,len));
        }
        br.close();
    }
}
